package com.burstly.jackson.util;

import java.util.Arrays;

public final class CharTypes
{
  private static final byte[] HEX_BYTES;
  private static final char[] HEX_CHARS = "0123456789ABCDEF".toCharArray();
  static final int[] sHexValues;
  static final int[] sInputCodes;
  static final int[] sInputCodesComment;
  static final int[] sInputCodesJsNames;
  static final int[] sInputCodesUtf8;
  static final int[] sInputCodesUtf8JsNames;
  static final int[] sOutputEscapes128;

  static
  {
    int i = HEX_CHARS.length;
    HEX_BYTES = new byte[i];
    int j = 0;
    int[] arrayOfInt1;
    int k;
    label34: int[] arrayOfInt2;
    int m;
    int[] arrayOfInt3;
    int i1;
    label111: int[] arrayOfInt5;
    int i2;
    label269: int i3;
    if (j >= i)
    {
      arrayOfInt1 = new int[256];
      k = 0;
      if (k < 32)
        break label383;
      arrayOfInt1[34] = 1;
      arrayOfInt1[92] = 1;
      sInputCodes = arrayOfInt1;
      arrayOfInt2 = new int[sInputCodes.length];
      System.arraycopy(sInputCodes, 0, arrayOfInt2, 0, sInputCodes.length);
      m = 128;
      if (m < 256)
        break label393;
      sInputCodesUtf8 = arrayOfInt2;
      arrayOfInt3 = new int[256];
      Arrays.fill(arrayOfInt3, -1);
      i1 = 33;
      if (i1 < 256)
        break label463;
      arrayOfInt3[64] = 0;
      arrayOfInt3[35] = 0;
      arrayOfInt3[42] = 0;
      arrayOfInt3[45] = 0;
      arrayOfInt3[43] = 0;
      sInputCodesJsNames = arrayOfInt3;
      int[] arrayOfInt4 = new int[256];
      System.arraycopy(sInputCodesJsNames, 0, arrayOfInt4, 0, sInputCodesJsNames.length);
      Arrays.fill(arrayOfInt4, 128, 128, 0);
      sInputCodesUtf8JsNames = arrayOfInt4;
      sInputCodesComment = new int[256];
      System.arraycopy(sInputCodesUtf8, 128, sInputCodesComment, 128, 128);
      Arrays.fill(sInputCodesComment, 0, 32, -1);
      sInputCodesComment[9] = 0;
      sInputCodesComment[10] = 10;
      sInputCodesComment[13] = 13;
      sInputCodesComment[42] = 42;
      arrayOfInt5 = new int[''];
      i2 = 0;
      if (i2 < 32)
        break label484;
      arrayOfInt5[34] = 34;
      arrayOfInt5[92] = 92;
      arrayOfInt5[8] = 98;
      arrayOfInt5[9] = 116;
      arrayOfInt5[12] = 102;
      arrayOfInt5[10] = 110;
      arrayOfInt5[13] = 114;
      sOutputEscapes128 = arrayOfInt5;
      sHexValues = new int[''];
      Arrays.fill(sHexValues, -1);
      i3 = 0;
      label348: if (i3 < 10)
        break label496;
    }
    for (int i4 = 0; ; i4++)
    {
      if (i4 >= 6)
      {
        return;
        HEX_BYTES[j] = ((byte)HEX_CHARS[j]);
        j++;
        break;
        label383: arrayOfInt1[k] = -1;
        k++;
        break label34;
        label393: int n;
        if ((m & 0xE0) == 192)
          n = 2;
        while (true)
        {
          arrayOfInt2[m] = n;
          m++;
          break;
          if ((m & 0xF0) == 224)
            n = 3;
          else if ((m & 0xF8) == 240)
            n = 4;
          else
            n = -1;
        }
        label463: if (Character.isJavaIdentifierPart((char)i1))
          arrayOfInt3[i1] = 0;
        i1++;
        break label111;
        label484: arrayOfInt5[i2] = -1;
        i2++;
        break label269;
        label496: sHexValues[(i3 + 48)] = i3;
        i3++;
        break label348;
      }
      sHexValues[(i4 + 97)] = (i4 + 10);
      sHexValues[(i4 + 65)] = (i4 + 10);
    }
  }

  public static void appendQuoted(StringBuilder paramStringBuilder, String paramString)
  {
    int[] arrayOfInt = sOutputEscapes128;
    int i = arrayOfInt.length;
    int j = 0;
    int k = paramString.length();
    if (j >= k)
      return;
    int m = paramString.charAt(j);
    if ((m >= i) || (arrayOfInt[m] == 0))
      paramStringBuilder.append(m);
    while (true)
    {
      j++;
      break;
      paramStringBuilder.append('\\');
      int n = arrayOfInt[m];
      if (n < 0)
      {
        paramStringBuilder.append('u');
        paramStringBuilder.append('0');
        paramStringBuilder.append('0');
        int i1 = -(n + 1);
        paramStringBuilder.append(HEX_CHARS[(i1 >> 4)]);
        paramStringBuilder.append(HEX_CHARS[(i1 & 0xF)]);
      }
      else
      {
        paramStringBuilder.append((char)n);
      }
    }
  }

  public static int charToHex(int paramInt)
  {
    if (paramInt > 127)
      return -1;
    return sHexValues[paramInt];
  }

  public static byte[] copyHexBytes()
  {
    return (byte[])HEX_BYTES.clone();
  }

  public static char[] copyHexChars()
  {
    return (char[])HEX_CHARS.clone();
  }

  public static final int[] get7BitOutputEscapes()
  {
    return sOutputEscapes128;
  }

  public static final int[] getInputCodeComment()
  {
    return sInputCodesComment;
  }

  public static final int[] getInputCodeLatin1()
  {
    return sInputCodes;
  }

  public static final int[] getInputCodeLatin1JsNames()
  {
    return sInputCodesJsNames;
  }

  public static final int[] getInputCodeUtf8()
  {
    return sInputCodesUtf8;
  }

  public static final int[] getInputCodeUtf8JsNames()
  {
    return sInputCodesUtf8JsNames;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.jackson.util.CharTypes
 * JD-Core Version:    0.6.2
 */